package com.yenchingcheng.entity;

import lombok.Data;

/**
 * @Author Yenchingcheng
 * @Date 2024/1/18 14:23
 * @Description 发起者类
 **/
@Data
public class Originator {

    private String state;

    public Memento saveStateToMemento(){
        return new Memento(state);
    }

    public void getStateFromMemento(Memento memento){
        state = memento.getState();
    }
}
